(major-mode-suspend)
(setq major-mode 'image-mode)
(setq image-transform-resize image-auto-resize)
- (setq-local disable-point-adjustment t)
;; Bail out early if we have no image data.
(if (zerop (buffer-size))
call `image-mode-as-text' to switch to text or hex display.
Otherwise, display the image by calling `image-mode'."
(interactive)
- (goto-char (point-min))
(if (image-get-display-property)
(image-mode-as-text)
(if (eq major-mode 'hexl-mode)